/*********
 * Menus *
 *********/

/* this controls the general appearance of the menubar */
.menubar {
    border-width: 0;
    border-style: none;
    padding: 4px;
    color: @theme_text_color;

    -GtkWidget-window-dragging: true;
    -GtkMenuBar-internal-padding: 0;
}

/* remove the image from the prelight areas
.menubar.menuitem:prelight {
    background-image: none;
    background-color: @theme_base_color;
    color: @theme_text_color;

    border-style: solid;
    border-radius: 3;
    border-width: 1;
    border-color: @inactive_frame_color;
}
*/

.menubar.menuitem {
    border-width: 1px;
    border-style: none;
}

.menu,
.popover_bg {
    /*border-radius: 6;*/

    background-color: #f8f8f8;
    background-image: none;

    /*background-image: -gtk-gradient (linear,
			         left top,
			         left bottom,
			         from (#f0f0f0),
			         to (#f8f8f8));*/

    -unico-inner-stroke-gradient: -gtk-gradient (linear,
                    left top, left bottom,
                    from (#fff),
                    to (alpha (#fff, 0.39)));

    border-style: solid;
    border-width: 1px;
    border-color: shade (@bg_color, 0.66);

    -unico-inner-stroke-width: 1px;
}

.menu.button {
    background-image: none;
}

.menu .menuitem {
    padding: 3px;
    -unico-menuitem-arrow-color: @menu_controls_color;
}

.menuitem.accelerator {
    color: alpha (#FFF, 0.66);
}

.menuitem.accelerator:prelight,
.menuitem.accelerator:active {
    color: alpha (@text_color, 0.49);
}

.menuitem:insensitive {
    color: alpha (@text_color, 0.40);
}

.menubar.menuitem:active,
.menubar.menuitem:prelight,
.menuitem:active,
.menuitem:prelight {
    border-style: solid;
    border-width: 1px 0 1px 0;
    -unico-inner-stroke-width: 1px 0 1px 0;

    background-image: -gtk-gradient (linear,
                    left top,
                    left bottom,
                    from (shade (@selected_bg_color, 1.30)),
                    to (shade (@selected_bg_color, 0.98)));

    -unico-border-gradient: -gtk-gradient (linear,
                    left top, left bottom,
                    from (shade (@selected_bg_color, 1.05)),
                    to (shade (@selected_bg_color, 0.88)));

    -unico-inner-stroke-gradient: -gtk-gradient (linear,
                    left top, left bottom,
                    from (alpha (#fff, 0.30)),
                    to (alpha (#fff, 0.06)));

}

/* menu radio and check items are drawn differently */
.menu.check:active {
    color: @menu_controls_color;
}

.menu.radio:active {
    color: @menu_controls_color;
}

.menu.check:prelight {
    color: @theme_selected_fg_color;
}

.menu.radio:prelight {
    color: @theme_selected_fg_color;
}

